﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Ad_Admanager" Codebehind="Admanager.aspx.cs" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../Include/JS/Lib/jquery-1.1.4.js"></script>
    <script type="text/javascript" src="../Include/JS/calendar.js"></script>
    <script type="text/javascript" src="../Include/JS/PopupCalendar.js"></script>
    <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
    <script type="text/javascript" src="../Include/JS/Address.js"></script>
    <script type="text/javascript">
    var  $j = jQuery.noConflict();
        var xmlhttp;
        var tranCost;
        function createRequest()
        {
            if(window.ActiveXObject)
            {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
            else if(window.XMLHttpRequest)
            {
                xmlhttp = new XMLHttpRequest();
            }
       }
       function setValue(p)
       {
            var products = p.split("|");
            var id= "";
            for(var i=0;i<products.length;i++)
            {
                if(i+1==products.length)
                {
                    var product = products[i].split(",");
                    
                    if(product.length>1)
                    {
                        id = id + product[0];
                    }
                }
                else
                {
                    var product = products[i].split(",");
                    
                    if(product.length>1)
                    {
                        id = id + product[0] + ",";
                    }
                }
            }
            document.getElementById("hidProduct").value=id;
       } 
       
       
    
    
        function CheckNeedToSave()
        {
            var hidIsNeedToSave = document.getElementById("hidIsNeedToSave");
            if(confirm('审核前需要保存吗?'))
            {
                hidIsNeedToSave.value="1";
            }
            else
            {
                hidIsNeedToSave.value="0";
            }
        }
    </script>
    <style type="text/css">
    .modalPopup {
	background-color:#ffffdd;
	border-width:3px;
	border-style:solid;
	border-color:#bdbdbd;
	padding:3px;
	width:250px;
}
.modalBackground {
	background-color:Gray;
	filter:alpha(opacity=70);
	opacity:0.7;
}
body {font-size:12px;margin:0;padding:0; color:#000000;}
.btlj {background: url(../Include/Images/bt.gif) no-repeat;color:#000000; width:52px; height:23px;text-align:center; padding-top:5px; font-size:12px;float:left;margin-left:5px;display:inline;}
.btlj a{color:#000000; text-decoration:none;}
.btlj a:hover{color:#FF3300;text-decoration:underline;}
.juli {margin-top:10px;padding-left:20px;}
.juli1 {margin-top:20px; margin-left:20px; text-align:left;}
.menu {float:left; width:100px;text-align:center;}
.menu1 {float:left; width:300px;text-align:center;}
.r_bgcolor4 {background-color:#F1F1F1; font-weight:600; text-align:center; padding-top:5px;padding-bottom:5px;border:#CCCCCC 1px solid;}
.fd1 {width:74px;margin:20px auto 0; clear:left;}
.fd2 {width:900px;margin:0 auto 0; clear:left;}
.fd3 {width:900px;margin:20px auto 0; clear:left;}
.fd4 {width:900px;margin:0 auto 20px; clear:left;}
.fd5 {width:900px;margin:-10px auto 20px; clear:left;}
.inputw{width:60px;}
.table {padding-left:20px;}
.tb3 {width: 500px; background-color:#999999;}
.index {width:1049px; margin:0; padding-left:0;border-top:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;}
.indexdh {width:1049px; height:25px; margin:0; padding:0;}
.indexthleft {background-position: center top;width:100px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft5 {background-position: center top;width:60px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft6 {background-position: center top;width:180px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthleft2 {background-position: center top;width:100px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.indexthright {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.indexthright2 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.indexthleft1 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthleft3 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthleft4 {background-position: center top;width:144px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.indexthright1 {background-position: center top;width:104px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindex {width:1047px; margin:0; padding-left:0;border-top:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;}
.xindexdh {width:1047px; height:25px; margin:0; padding:0;}
.xindexthleft {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthleft4 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright4 {background-position: center top;width:196px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthleft2 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: center;vertical-align: middle;}
.xindexthright2 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #ffffff;text-align: right;vertical-align: middle;}
.xindexthleft1 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthleft3 {background-position: center top;width:64px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthright1 {background-position: center top;width:130px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
.xindexthright3 {background-position: center top;width:196px;height:24px;margin:0px;padding:0px;float:left;line-height:24px;background-color: #e7e7e7;text-align: center;vertical-align: middle;}
a.lj {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:link {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:visited {font-size:12px; color:#ff3300; text-decoration:underline;}
a.lj:hover {color:#ff3300;}
a.lj:active {color:#ff3300;}
a.lj1 {background: url(../Include/Images/bt.gif) no-repeat; width:52px; height:23px;text-align:center; padding-top:5px; font-size:12px;float:left;margin-left:5px;display:inline;}
a.lj1:link {font-size:12px; color:#000000; text-decoration:none;}
a.lj1:visited {font-size:12px; color:#000000; text-decoration:none;}
a.lj1:hover {color:#000000;}
a.lj1:active {color:#000000;}
h2 {width:1250px;padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
.input_button {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;}
.input_button1 {width:74px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt1.gif) no-repeat;}
.input_button2 {width:52px;height:23px;border:none;background:#ffffff url(../Include/Images/bt.gif) no-repeat; padding-top:5px;}
.input_button2 a{color:#000000;}
.input_button2 a:hover{color:#FF3300; text-decoration:underline;}
.input_button3 {width:95px;height:23px;border:none;background:#ffffff url(../Include/Images/bt2.gif) no-repeat;}
.input_button4 {width:143px;height:23px;border:none;background:#ffffff url(../Include/Images/bt3.gif) no-repeat;}
.z1{background-color:#e7e7e7; text-align:left; line-height:20px;}
.z2{background-color:#FFFFFF; text-align:left; line-height:20px;}
.zt1 {padding-left:10px; font-weight:600; color:#000000;}
.zt2 {padding-left:10px;}
.zt3 {text-align:center; font-weight:600; color:#000000;}
.zt4 {text-align:center; color:#000000;}
.zt5 {text-align:left; font-weight:600;}
.zt6 {font-size:14px; font-weight:600;}
.zt7 {text-align:right; color:#000000;}
.zt8 {text-align:right; color:#000000;}
.tb {width: 90%; background-color:#999999;}
.tb1 {width: 90%; background-color:#999999; margin-top:10px;}
.tb2 {width: 1050px; background-color:#999999;}
.jiacu {float:left; font-weight:bold;padding-top:5px;}
.menu_bg { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;width:1250px;clear:left;}
.menu_bg1 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;width:100%;clear:left;}
.menu_bg2 {width:1250px;background-color:#cccccc;text-align:left;font-weight:bold;margin:10px 0 10px 0;padding-top:5px;padding-bottom:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.menu_bg3 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.ld {margin-left:20px;}
.td_left {border-left:#999999 1px solid; border-top:#999999 1px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid; font-weight:bold; background:#e7e7e7; text-align:center; line-height:22px;}
.td_right {border-left:#999999 1px solid; border-top:#999999 1px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid; font-weight:bold; background:#e7e7e7; text-align:center; line-height:22px;}
.td_left1 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:center; line-height:22px;}
.td_right1 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:center; line-height:22px;}
.td_left2 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:right; line-height:22px;}
.td_right2 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:right; line-height:22px;}
.td_left3 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 0px solid;  text-align:right; line-height:22px;}
.td_right3 {border-left:#999999 1px solid; border-top:#999999 0px solid; border-bottom:#999999 1px solid; border-right:#999999 1px solid;  text-align:right; line-height:22px;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;} 
</style>
</head>
<body >
    <form id="form1" runat="server">
    <div align="Justify">
     <h2>
         广告管理</h2>
        <div class="menu_bg2">
             &nbsp;<asp:Button ID="btnAddProduct" runat="server" Text="新增" CssClass="input_button" OnClick="btnAddProduct_Click" /></div>
            
            <div class="juli"><asp:DataList ID="dlistADDetail" runat="server" DataKeyField ="Adid" Width="100%" OnItemDataBound="dlistOrderDetail_ItemDataBound" OnItemCommand="dlistOrderDetail_ItemCommand"><HeaderTemplate>
                            <tr>
                                <td class="td_left" width=20%>
                                    删除</td>
                                <td class="td_left" width=15%>
                                    广告名称</td>
                              
                                <td class="td_left" width=17%>
                                    开始日期   </td>
                                <td class="td_left" width=17%>
                                    结束日期</td>
                                            <%--   <td class="td_left" width=7%>查看数</td>--%>
                                     <td class="td_right" width=7%>点击数</td>
                     
                            </tr>                           
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td class="td_left1" width=20%>
                                  <asp:Label ID="lbAdid" runat="server" Visible ="false"  Text='<%# Eval("Adid") %>'></asp:Label>
                                    <asp:Button ID="btnDelete" runat="server" CssClass="input_button" CommandName="del" Text="删除" />          
                                     <asp:Button ID="btnupdate" runat="server" CssClass="input_button" CommandName="update" Text="修改" />
                                       <asp:Button ID="Button1" runat="server" CssClass="input_button3" CommandName="make" Text="生成广告" />
                                       
                                       
                                </td>                            
                                 <td class="td_left1" width=15%>
                                    <asp:Label ID="TxtAdName" runat="server" Text='<%# Eval("AdName") %>'></asp:Label>
                                    
                             
                                </td>
                           
                            <td class="td_left1" width=15%>
                                <asp:Label ID="txtRecommendInergalSeparate" runat="server" Text='<%# String.Format("{0:yyyy-MM-dd HH:mm}", Eval("AdPicStartDateTime")) %>' Width="100" ></asp:Label>
                            
                                </td>
                                
                                
                                  <td class="td_left1" width=15%>
                                <asp:Label ID="txtRecommendCostSeparate" runat="server" Text='<%# String.Format("{0:yyyy-MM-dd HH:mm}", Eval("AdPicEndDateTim")) %>' Width="100" ></asp:Label>
                                
                            
                                </td>
                                
                                
                             <%--       <td class="td_left1" width=15%>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("AdAttribute6")%>' Width="50" ></asp:Label>
                                
                            
                                </td>--%>
                                
                                
                                    <td class="td_right1" width=15%>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("AdAttribute5")%>' Width="50" ></asp:Label>
                                
                            
                                </td>
  
                            </tr>                            
                        </ItemTemplate>
                    </asp:DataList></div>
        </div>
    </form>
</body>
</html>
